/**
 * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import prompt from '@system.prompt';

export default {
    data:{
        OptionArray:{icon:"common/images/icon.png",content:"复制"
        },
        listOne:[{}],
        listThree:[{},{},{}],
        idProp : null,
        classProp : null,
        classPropNone : null,
        styleProp : null,
        refProp : null,
        refPropNone : null,
        disabledPropTrue : null,
        disabledPropFalse : null,
        disabledPropNone : null,
        focusablePropTrue : null,
        focusablePropFalse : null,
        focusablePropNone : null,
        dataProp : null,
        dataPropNone : null,
        clickEffectPropSmall : null,
        clickEffectPropMedium : null,
        clickEffectPropLarge : null,
        clickEffectPropNone : null,
        dirPropRtl : null,
        dirPropAuto : null,
        dirPropLtr : null,
        dirPropNone : null,
        forPropNull : null,
        forPropOne : null,
        forPropThree : null,
        ifPropTrue : null,
        showPropTrue : null,
        showPropFalse : null,
        showPropNone : null,

        placeholderNone : null,
        placeholder : null,
        maxlength20 : null,
        headericon : null,
        headericonNone : null,
        extendNone : null,
        extendFalse : null,
        extendTrue : null,
        valueNone : null,
        value : null,
        showcounterNone : null,
        showcounterFalse : null,
        showcounterTrue : null,
        menuoptionsNone : null,
        menuoptions : null,
        autofocusNone : null,
        autofocusFalse : null,
        autofocusTrue : null,
        selectedstartNone : null,
        selectedstart5 : null,
        selectedendNone : null,
        selectedend5 : null,
        softkeyboardenabledNone : null,
        softkeyboardenabledFalse : null,
        softkeyboardenabledTrue : null,
    },

    onShow(){
        this.getCommonPropValues();
        this.getSpecificPropValues();
        globalThis.value = {
            idProp : this.idProp, classProp : this.classProp, classPropNone : this.classPropNone,
            styleProp : this.styleProp, refProp : this.refProp, refPropNone : this.refPropNone,
            disabledPropTrue : this.disabledPropTrue, disabledPropFalse : this.disabledPropFalse,
            disabledPropNone : this.disabledPropNone, focusablePropTrue : this.focusablePropTrue,
            focusablePropFalse : this.focusablePropFalse, focusablePropNone : this.focusablePropNone,
            dataProp : this.dataProp, dataPropNone : this.dataPropNone,
            clickEffectPropSmall : this.clickEffectPropSmall,
            clickEffectPropMedium : this.clickEffectPropMedium,
            clickEffectPropLarge : this.clickEffectPropLarge,
            clickEffectPropNone : this.clickEffectPropNone, dirPropRtl : this.dirPropRtl,
            dirPropAuto : this.dirPropAuto,
            dirPropLtr : this.dirPropLtr, dirPropNone : this.dirPropNone, forPropNull : this.forPropNull,
            forPropOne : this.forPropOne, forPropThree : this.forPropThree, ifPropTrue : this.ifPropTrue,
            showPropTrue : this.showPropTrue, showPropFalse : this.showPropFalse, showPropNone : this.showPropNone,

            placeholderNone : this.placeholderNone,
            placeholder : this.placeholder,
            maxlength20 : this.maxlength20,
            headericon : this.headericon,
            headericonNone : this.headericonNone,
            extendNone : this.extendNone,
            extendFalse : this.extendFalse,
            extendTrue : this.extendTrue,
            valueNone : this.valueNone,
            value : this.value,
            showcounterNone : this.showcounterNone,
            showcounterFalse : this.showcounterFalse,
            showcounterTrue : this.showcounterTrue,
            menuoptionsNone : this.menuoptionsNone,
            menuoptions : this.menuoptions,
            autofocusNone : this.autofocusNone,
            autofocusFalse : this.autofocusFalse,
            autofocusTrue : this.autofocusTrue,
            selectedstartNone : this.selectedstartNone,
            selectedstart5 : this.selectedstart5,
            selectedendNone : this.selectedendNone,
            selectedend5 : this.selectedend5,
            softkeyboardenabledNone : this.softkeyboardenabledNone,
            softkeyboardenabledFalse : this.softkeyboardenabledFalse,
            softkeyboardenabledTrue : this.softkeyboardenabledTrue,
        }
    },
    getCommonPropValues(){
        this.idProp = this.$element("idProp").getInspector()
        this.classProp = this.$element("classProp").getInspector()
        this.classPropNone = this.$element("classPropNone").getInspector()
        this.styleProp = this.$element("styleProp").getInspector()
        this.refProp = this.$element("refProp").getInspector()
        this.refPropNone = this.$element("refPropNone").getInspector()
        this.disabledPropTrue = this.$element("disabledPropTrue").getInspector()
        this.disabledPropFalse = this.$element("disabledPropFalse").getInspector()
        this.disabledPropNone = this.$element("disabledPropNone").getInspector()
        this.focusablePropTrue = this.$element("focusablePropTrue").getInspector()
        this.focusablePropFalse = this.$element("focusablePropFalse").getInspector()
        this.focusablePropNone = this.$element("focusablePropNone").getInspector()
        this.dataProp = this.$element("dataProp").getInspector()
        this.dataPropNone = this.$element("dataPropNone").getInspector()
        this.clickEffectPropSmall = this.$element("clickEffectPropSmall").getInspector()
        this.clickEffectPropMedium = this.$element("clickEffectPropMedium").getInspector()
        this.clickEffectPropLarge = this.$element("clickEffectPropLarge").getInspector()
        this.clickEffectPropNone = this.$element("clickEffectPropNone").getInspector()
        this.dirPropRtl = this.$element("dirPropRtl").getInspector()
        this.dirPropAuto = this.$element("dirPropAuto").getInspector()
        this.dirPropLtr = this.$element("dirPropLtr").getInspector()
        this.dirPropNone = this.$element("dirPropNone").getInspector()
        this.forPropNull = this.$element("forPropNull").getInspector()
        this.forPropOne = this.$element("forPropOne").getInspector()
        this.forPropThree = this.$element("forPropThree").getInspector()
        this.ifPropTrue = this.$element("ifPropTrue").getInspector()
        this.showPropTrue = this.$element("showPropTrue").getInspector()
        this.showPropFalse = this.$element("showPropFalse").getInspector()
        this.showPropNone = this.$element("showPropNone").getInspector()
    },
    getSpecificPropValues(){
        this.placeholderNone = this.$element("placeholderNone").getInspector()
        this.placeholder = this.$element("placeholder").getInspector()
        this.maxlength20 = this.$element("maxlength20").getInspector()
        this.headericon = this.$element("headericon").getInspector()
        this.headericonNone = this.$element("headericonNone").getInspector()
        this.extendNone = this.$element("extendNone").getInspector()
        this.extendFalse = this.$element("extendFalse").getInspector()
        this.extendTrue = this.$element("extendTrue").getInspector()
        this.valueNone = this.$element("valueNone").getInspector()
        this.value = this.$element("value").getInspector()
        this.showcounterNone = this.$element("showcounterNone").getInspector()
        this.showcounterFalse = this.$element("showcounterFalse").getInspector()
        this.showcounterTrue = this.$element("showcounterTrue").getInspector()
        this.menuoptionsNone = this.$element("menuoptionsNone").getInspector()
        this.menuoptions = this.$element("menuoptions").getInspector()
        this.autofocusNone = this.$element("autofocusNone").getInspector()
        this.autofocusFalse = this.$element("autofocusFalse").getInspector()
        this.autofocusTrue = this.$element("autofocusTrue").getInspector()
        this.selectedstartNone = this.$element("selectedstartNone").getInspector()
        this.selectedstart5 = this.$element("selectedstart5").getInspector()
        this.selectedendNone = this.$element("selectedendNone").getInspector()
        this.selectedend5 = this.$element("selectedend5").getInspector()
        this.softkeyboardenabledNone = this.$element("softkeyboardenabledNone").getInspector()
        this.softkeyboardenabledFalse = this.$element("softkeyboardenabledFalse").getInspector()
        this.softkeyboardenabledTrue = this.$element("softkeyboardenabledTrue").getInspector()
    }
}
